Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix external links #5754

Merged
merged 3 commits into from
Oct 27, 2024
Merged

fix: Fix external links #5754

merged 3 commits into from
Oct 27, 2024

Conversation

g123k
Copy link
Collaborator

@g123k g123k commented Oct 27, 2024

Hi everyone,

We have several issues with external links:

First, from the tagline, instead of pushing a route with the push() method, we used go() ; thus clearing the history.

Second, due to bugs, we now force the external browser on non-Android platforms, as it's broken otherwise.

Third, with external links, we may have no history (due to the go() method) -> in that case, we go back to the homepage.

Fourth, external links with multiple levels (eg: cgi/reset_password.pl) were ignored by GoRouter

It will fix #5750 and #5753

@g123k g123k linked an issue Oct 27, 2024 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.

Project coverage is 7.01%. Comparing base (4d9c7fc) to head (8f46a08).
Report is 400 commits behind head on develop.

Files with missing lines Patch % Lines
.../smooth_app/lib/pages/navigator/app_navigator.dart 0.00% 6 Missing ⚠️
...ages/smooth_app/lib/helpers/launch_url_helper.dart 0.00% 3 Missing ⚠️
.../smooth_app/lib/pages/navigator/external_page.dart 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5754      +/-   ##
==========================================
- Coverage     9.54%   7.01%   -2.54%     
==========================================
  Files          325     407      +82     
  Lines        16411   21816    +5405     
==========================================
- Hits          1567    1530      -37     
- Misses       14844   20286    +5442     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@g123k g123k changed the title Fix: Fix external links fix: Fix external links Oct 27, 2024
Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great 👍 thanks @g123k

@teolemon teolemon merged commit 3475631 into openfoodfacts:develop Oct 27, 2024
7 of 8 checks passed
g123k added a commit that referenced this pull request Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

The link to reset the password is broken Error on home page when clicking on "help us"
3 participants